package com.atguigu.exp;

import lombok.Getter;

/**自定义业务异常类
 * @auther zzyy
 * @create 2024-04-18 17:35
 */
@Getter
public class BusinessException extends RuntimeException
{
    private String code;/** 结果状态 ,具体状态码参见枚举类ReturnCodeEnum.java*/
    private String message;

    public BusinessException(String code, String message)
    {
        this.code = code;
        this.message = message;
    }
}
